using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository
{
       
    class   EquityPrivilegeMap : ClassMap<EquityPrivilege>
    {

        public EquityPrivilegeMap()
            {
                Table("EQUITY_PRIVILEGE");
                Id(x => x.EquityPrivilegeID, "EQUITY_PRIVILEGE_ID").GeneratedBy.Identity();

                Map(x => x.EquityHeaderID,"EQUITY_HEADER_ID");
 Map(x => x.AcknowlegeDate,"ACKNOWLEGE_DATE");
 Map(x => x.PrivilegeTypeName,"PRIVILEGE_TYPE_NAME");
 Map(x => x.PrivilegeTypeID,"PRIVILEGE_TYPE_ID");
 Map(x => x.EXDate,"EX_DATE");
 Map(x => x.BcdDate,"BCD_DATE");
 Map(x => x.DivUnit,"DIV_UNIT");
 Map(x => x.DivAmount,"DIV_AMOUNT");
 Map(x => x.DivStock,"DIV_STOCK");
 Map(x => x.FractionUnit,"FRACTION_UNIT");
 Map(x => x.FractionDivUnit,"FRACTION_DIV_UNIT");
 Map(x => x.AmortizeUnit,"AMORTIZE_UNIT");
 Map(x => x.PriceUnit,"PRICE_UNIT");
 Map(x => x.RightOldNew,"RIGHT_OLD_NEW");
 Map(x => x.PaymentDate,"PAYMENT_DATE");
 Map(x => x.TrannsaferDate,"TRANNSAFER_DATE");
 Map(x => x.TrannsaferPrice,"TRANNSAFER_PRICE");
 Map(x => x.CreateDate,"CREATE_DATE");
 Map(x => x.CreateBY,"CREATE_BY");
 Map(x => x.ModifyDate,"MODIFY_DATE");
 Map(x => x.ModifyBY,"MODIFY_BY");

            }


    }

}